/**
 * 
 */
package com.itinsys.enma.manager;

import java.text.ParseException;
import java.util.List;

import com.itinsys.enma.domain.DailyReservation;
import com.itinsys.enma.domain.PlanningReservation;
import com.itinsys.enma.domain.dto.DailyReservationDTO;
import com.itinsys.enma.domain.dto.PlanningReservationDTO;
import com.itinsys.enma.domain.response.DailyReservationResponse;
import com.itinsys.enma.domain.response.ReservationResponse;
import com.itinsys.enma.exception.planning.PlanningExistsException;
import com.itinsys.enma.exception.reservation.ReservationExistsException;

/**
 * @author pferraz
 *
 */
public interface ReservationDTOManager {

	ReservationResponse checkReservationDTO(PlanningReservationDTO rDTO) throws ReservationExistsException;

	PlanningReservation convertToReservation(PlanningReservationDTO rDTO) throws NumberFormatException, PlanningExistsException;

	List<ReservationResponse> convertToEventResponseList(List<PlanningReservation> allReservations) throws ParseException, ReservationExistsException;
	
	DailyReservationResponse checkDailyReservationDTO(DailyReservationDTO rDTO) throws ReservationExistsException;

	List<DailyReservationResponse> convertToEventDResponseList(List<DailyReservation> allReservations, boolean admin) throws ParseException, ReservationExistsException;

	DailyReservation convertToDailyReservation(DailyReservationDTO rDTO, String userName)throws NumberFormatException, PlanningExistsException;

	PlanningReservationDTO reservationToEventDTO(PlanningReservation planningReservation) throws ReservationExistsException, ParseException;

}
